<?php if($user->user_identity==1){ ?>
<div class="newstl f18">
    <div class="renwu bg-fff ">
        <div class="tao-dt fl"> </div>
        <div class="taobao fl bg-fff d-block">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">淘宝刷单任务大厅</span></h3>
                <p class="f14 c-333"> <span> 垫付单 </span> <span> 远程单 </span> <span> 预约单 </span> </p>
            </div>
            <a class="btnn d-block" href="/task/tbtask">进入大厅</a> </div>
    </div>
    <div class="renwu bg-fff ">
        <div class="tao-tg fl tao-dt "> </div>
        <div class="tuiguang">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">京东刷单任务大厅</span></h3>
                <p class="f14 c-333"> <span> 垫付单 </span> <span> 远程单 </span> <span> 预约单 </span> </p>
            </div>
            <a class="btnn d-block" href="/task/jdtask">进入大厅</a> </div>
    </div>
    <div class="renwu bg-fff ">
        <div class="tao-rz fl tao-dt "> </div>
        <div class="rezhuan">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">热门任务大厅</span></h3>
                <p class="f14 c-333"> <span> 浏览单 </span> <span> 团购单 </span><span> 其他热门任务 </span><br />
                    各种浏览任务、团购任务、推广任务、注册任务 </p>
            </div>
            <a class="btnn d-block" href="hot.html">进入大厅</a> </div>
    </div>
</div>
<?php }elseif($user->user_identity==2){ ?>
<div class="newstl f18">
    <div class="renwu bg-fff ">
        <div class="tao-dt fl"> </div>
        <div class="taobao fl bg-fff d-block">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">淘宝刷单任务大厅</span></h3>
                <p class="f14 c-333"> <span> 垫付单 </span> <span> 远程单 </span> <span> 预约单 </span> </p>
            </div>
            <a class="btnn d-block fl ente" href="/task/tbtask">进入大厅</a>
            <a class="btnn d-block fl enten  rela" href="javascript:void(0)" onclick="checkBind(1)">发布任务</a>
        </div>
    </div>
    <div class="renwu bg-fff ">
        <div class="tao-tg fl tao-dt "> </div>
        <div class="tuiguang">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">京东刷单任务大厅</span></h3>
                <p class="f14 c-333"> <span> 垫付单 </span> <span> 远程单 </span> <span> 预约单 </span> </p>
            </div>
            <a class="btnn d-block fl ente" href="/task/jdtask">进入大厅</a>
            <a class="btnn d-block fl enten rela" href="javascript:void(0)" onclick="checkBind(2)">发布任务</a></div>
    </div>
    <div class="renwu bg-fff ">
        <div class="tao-rz fl tao-dt "> </div>
        <div class="rezhuan">
            <div class="dd">
                <h3 class="c-666"><span class="poaion bg-fff ">热门任务大厅</span></h3>
                <p class="f14 c-333"> <span> 浏览单 </span> <span> 团购单 </span><span> 其他热门任务 </span><br />
                    各种浏览任务、团购任务、推广任务、注册任务 </p>
            </div>
            <a class="btnn d-block fl ente" href="ht smi.html">进入大厅</a>
            <a class="btnn d-block fl enten" href="javascript:void(0)" onclick="checkBind(0)">发布任务</a>
        </div>
    </div>
</div>

<div class="relan">
    <div class="bg">
        <span class="bg-top">
        <p class="false"><a href=""> ｘ</a></p>
        </span>
        <p class="bg-prompt">亲 还未绑定店铺 <span><a class="orange fou" href="">点击此处绑定店铺</a></span></p>
    </div>
</div>
<script type="text/javascript">
    function checkBind(v){
        $.ajax({
            url:"/ajax/checkbind",
            type:"POST",
            data:{v:v},
            dataType:"json",
            success:function(result){
                if(result.status==1){
                    location.href="/task/tasktemplate";
                }else{
                    if(v==1){
                        $(".relan .fou").attr("href","/task/bindtb");
                    }else if(v==2){
                        $(".relan .fou").attr("href","/task/bindjd");
                    }
                    $(".relan").css("display","block");
                }
            }
        });
    }
</script>
<?php } ?>
